package com.itgungnir.diyshuo.fragment.danpin_fragment;

import com.itgungnir.diyshuo.bean.DiyBean;
import com.itgungnir.diyshuo.bean.GoodsBean;

import java.util.List;
import java.util.Map;

/**
 * DanPinFragment中接口的统一管理类
 */
public class DanPinContract {
    public interface View {
        //获取单品数据成功执行的方法
        public void onDanPinSuccess(List<GoodsBean> goodsBeanList);
        //获取单品数据失败执行的方法
        public void onDanPinFail(String msg);
    }

    public interface Model {
        public void getDanPinData(Map<String,String> params, OnLoadDanPinListener loadDanPinListener);
    }

    public interface Presenter {
        public void getDanPinFromNet(Map<String,String> params);
    }
    public interface OnLoadDanPinListener{
        public void onSuccess(DiyBean diyBean);
        public void onFail(Exception e);
    }
}